Skip to content

Conversation

@balos1
Copy link
Member

@balos1 balos1 commented Nov 11, 2025

This PR adds sundials4py, which is a Python interface to SUNDIALS.

The generator code can be found here: https://github.com/sundials-codes/sundials4py-generate.

Rendered docs: https://sundials--796.org.readthedocs.build/en/796/.

Review Requests

@drreynolds:

  • doc/
  • bindings/sundials4py/arkode
  • bindings/sundials4py/idas
  • bindings/sundials4py/kinsol
  • bindings/sundials4py/sundomeigest
  • bindings/sundials4py/sunlinsol
  • bindings/sundials4py/sunmatrix
  • bindings/sundials4py/examples

@gardner48:

Everything but can skip:

  • _generated.hpp files (Steven and I will review these)
  • bindings/sundials4py/examples (Steven and Dan are both reviewing these)
  • bindings/sundials4py/arkode (Steven and Dan both reviewing these)
  • bindings/sundials4py/idas (Steven and Dan both reviewing these)

@Steven-Roberts

  • Skim _generated.hpp files in bindings/sundials4py
  • bindings/sundials4py/arkode
  • bindings/sundials4py/idas
  • bindings/sundials4py/include
  • bindings/sundials4py/sundials
  • bindings/sundials4py/nvector
  • bindings/sundials4py/sunadaptcontroller
  • bindings/sundials4py/sunadjointcheckpointscheme
  • bindings/sundials4py/sunnonlinsol
  • bindings/sundials4py/sunmemory
  • bindings/sundials4py/examples
  • https://github.com/sundials-codes/sundials4py-generate

Copy link
Collaborator

@Steven-Roberts Steven-Roberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the function tables need to have their deconstructor manually called before the free. I suggested a fix for the case of an error in the create function. The other free occurs when the integrator is destroyed. Perhaps in the wrapping view deconstructor we can manually call the deconstructor of the function table. I'm struggling to see where else this can be called because it has to be in a C++ file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants